﻿@using BusinessBingo.Web.Models.ViewModels;
@model BusinessBingo.Web.Models.ViewModels.BoxedBingoSetViewModel

@{
	int columnWidth = Model.BoxSize / Model.BingoSetViewModel.Size;
	int i = 0;
	foreach (WordPositionViewModel wordPositionViewModel in Model.BingoSetViewModel.WordPositionViewModels)
	{
		<div class="box-@columnWidth">
			@if (wordPositionViewModel.Checked == false && Model.BingoSetViewModel.Finished == false)
			{ 
				<a href="javascript:CheckWord('@wordPositionViewModel.WordId');">
					<p class="normalBox">
					</p>
				</a>
			}
			else
			{
					<p class="normalBox highlightedBox">
					</p>
			}
			
		</div>

		i++;
	}
}